package br.com.tecnove.random.android;

import java.util.Timer;
import java.util.TimerTask;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;


public class SplashActivity extends Activity {
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splash);
        
        TimerTask timerTask = new TimerTask() {
			@Override
			public void run() {
				//Starting the main RANDOM! activity
				Intent i = new Intent();
				i.setClassName("br.com.tecnove.random.android", 
						"br.com.tecnove.random.android.MainActivity");
				startActivity(i);
			}
		};
		
		Timer timer = new Timer();
		timer.schedule(timerTask, 4000);
    }
    
    @Override
    protected void onPause() {
    	super.onPause();
    	finish();
    }
}